from django.urls import path
from . import views

urlpatterns = [
    # 聊天室相关
    path('rooms/', views.ChatRoomListView.as_view(), name='chat_rooms'),
    path('create_room/', views.CreateChatRoomView.as_view(), name='create_chat_room'),

    # 消息相关
    path('messages/', views.ChatMessageListView.as_view(), name='chat_messages'),  # GET 历史消息
    path('messages/send/', views.SendMessageView.as_view(), name='send_message'),   # POST 发送消息
    path('messages/read/', views.MarkMessagesReadView.as_view(), name='mark_messages_read'),  # POST 标记已读

    # 用户搜索
    path('search_users/', views.SearchUsersView.as_view(), name='search_users'),
] 